package com.hzhr.iot.user.sdk.model.dept;

import com.hzhr.iot.core.annotation.CygModel;
import com.hzhr.iot.core.annotation.CygProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "DeptModel", description = "部门模型")
public class DeptModel {
    @ApiModelProperty(value = "说明 : 编号", required = true)
    @CygProperty(show = "", entityProp = "id")
    private Integer id;

    @ApiModelProperty(value = "说明 : 部门名称(show_info=true时展示)", required = true)
    @CygProperty(show = "_show_info", entityProp = "name")
    private String name;
    @ApiModelProperty(value = "说明 : 部门代码(show_info=true时展示)", required = true)
    @CygProperty(show = "_show_info", entityProp = "code")
    private String code;
    @ApiModelProperty(value = "说明 : 部门级数:从1开始(show_info=true时展示)", required = true)
    @CygProperty(show = "_show_info", entityProp = "level")
    private Integer level;
    @ApiModelProperty(value = "说明 : 上级部门编号(show_info=true时展示;0代表顶级部门)", required = true)
    @CygProperty(show = "_show_info", entityProp = "parentId")
    private Integer parentId;
    @ApiModelProperty(value = "说明 : 上级部门名称(show_info=true时展示)")
    @CygProperty(show = "_show_info", entityProp = "parentName")
    private String parentName;
    @ApiModelProperty(value = "说明 : 所属公司编号(show_info=true时展示)", required = true)
    @CygProperty(show = "_show_info", entityProp = "companyId")
    private Integer companyId;
    @ApiModelProperty(value = "说明 : 资源代码(show_info=true时展示)", required = true)
    @CygProperty(show = "_show_info", entityProp = "resourceCode")
    private String resourceCode;

    @ApiModelProperty(value = "说明 : 资源代码(show_subCompanyName=true时展示)", required = true)
    @CygProperty(show = "_show_managementName", entityProp = "")
    private String managementName;
    @ApiModelProperty(value = "说明 : 资源代码(show_subCompanyName=true时展示)", required = true)
    @CygProperty(show = "_show_subCompanyName", entityProp = "")
    private String subCompanyName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getResourceCode() {
        return resourceCode;
    }

    public void setResourceCode(String resourceCode) {
        this.resourceCode = resourceCode;
    }

    public String getManagementName() {
        return managementName;
    }

    public void setManagementName(String managementName) {
        this.managementName = managementName;
    }

    public String getSubCompanyName() {
        return subCompanyName;
    }

    public void setSubCompanyName(String subCompanyName) {
        this.subCompanyName = subCompanyName;
    }
}

